<?php
//加载项目初始化文件
include '../init.php';

//注销登入删除cookie数据
setcookie('user_id', '', time() - 1, '/');
//删除session数据
session_start();
$_SESSION = array();
session_destroy();
//跳转
jump('../view/login.html', '注销成功！两秒后跳转到登录页！');
?>